import client.ConsoleClient;
import client.gui.ClientGUI;

public class Client {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			if (args.length == 1) {
				if (args[0].equals("console")) {
					if (args.length == 2) {
						new ConsoleClient(args[1]);
					} else
						new ConsoleClient("localhost");
				}
			} else {
				new ClientGUI();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
